package simpleFactory;

/**
 * 简单工厂
 */
public class SimpleComputerFactory {
    public static Computer  makeSystem(String log){
        switch (log){
            case ("mi"):
                return new MiComputer();
            case ("apple"):
                return new MacComputer();
            default:
                break;
        }
        System.out.println("别瞎填！！！");
        return null;

    }
}
